﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerCollisonEnterCondition : Condition
{
    private void Start()
    {
        Player.Instance.onBodyCollisionEnter.AddListener(col => 
        {
            if (col.gameObject == gameObject)
            {
                this.ToJump = true;
            }
        });
    }
}
